Release 10.1A: OpenEdge Data Management:
SQL Reference


SUM

Returns the sum of the values in a group. The keyword DISTINCT specifies that the duplicate values are to be eliminated before computing the sum.

Syntax

SUM ( { [ALL] expression } | { DISTINCT column_ref } ) 

Example

This example illustrates the SUM function:

SELECT SUM (amount)
     FROM orders
     WHERE order_date = SYSDATE ; 

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095